

<%@ page import="eudjok.SetList" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'setList.label', default: 'SetList')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
		 <div id="navegacao">
           	 	<div class="homePagePanel">
           	     	<div class="panelTop"></div>
           	     	<div class="panelBody" id="panelBody">
           	        	 <g:render template="/common/perfil/Dj" />
           	     	</div>
           	    	 <div class="panelBtm"></div>
           		 </div>
        	</div>
			
				
			<div id="centroLivre">
		
				<h2 class="pretoPrincipal"><g:message code="default.create.label" args="[entityName]" /></h2>
				<p class="nav">
					Crie aqui sua seltist. Primeiro dê um nome para ela e que depois você poderá adicionar musicas.
				</p>
				<br/>
				<g:if test="${flash.message}">
				<div class="message">${flash.message}</div>
				</g:if>
				<g:hasErrors bean="${setListInstance}">
				<div class="errors">
					<g:renderErrors bean="${setListInstance}" as="list" />
				</div>
				</g:hasErrors>
			
			
			
						<g:form action="save" >
							<table>
								<tbody>
								
									<tr class="prop">
										<td valign="top" class="name">
											<label for="titulo"><g:message code="setList.titulo.label" default="Titulo" /></label>
										</td>
										<td valign="top" class="value ${hasErrors(bean: setListInstance, field: 'titulo', 'errors')}">
											<g:textField name="titulo" value="${setListInstance?.titulo}" />
										</td>
									</tr>
									
									<tr class="prop">
										<td valign="top" class="name">
											<label for="estilo"><g:message code="setList.estilo.label" default="Estilo" /></label>
										</td>
										<td valign="top" class="value ${hasErrors(bean: setListInstance, field: 'estilo', 'errors')}">
											<g:select name="estilo.id" from="${eudjok.Estilo.list()}" optionKey="id" value="${setListInstance?.estilo?.id}"  />
										</td>
									</tr>
								
									<td><g:checkBox name="publica" value="${setListInstance?.publica}" /></td>
									<td>Visível</td>
															
								</tbody>
							</table>
							
							<div class="buttons">
								<span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
							</div>
							
						</g:form>
				
			
		
        </div>
		
		
		
    </body>
</html>
